package mlz.b_extends.demo2;

//动物类 -> 父类
public class Animal {
    String name;

    //父类无参
    public Animal() {
    }

    //父类有参
    public Animal(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
